<template>
    <div>
        <departmentView v-if="loading" :id="id" :eid="eid" @goBack="goBack"></departmentView>
    </div>
</template>

<script>
import departmentView from './components/views.vue'
export default {
    layout: 'admin',
    components:{
      departmentView
    },
    head() {
        return {
            title: '部门详情' 
        }
    },
    data() {
        return {
            id: 0,
            eid: 0,
            loading: false,
        };
    },
    mounted() { 
        this.id = this.$route.query.id
        this.eid = this.$route.query.eid
        this.loading = true
    },
    methods: {
        goBack(){
            window.close();
        }
    }
};
</script>
<style lang="scss" scoped>

</style>